package com.cy.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author 小李
 * @version 1.0
 * @date 2021/8/28 11:33
 */

/**
 * @FeignClient描述接口时，用于告诉spring要为此接口创建实现类
 */
@FeignClient(value = "sca-provider",contextId="remoteProviderService")//value的值为你要调用的服务名
public interface RemoteProviderService {
    @GetMapping( "/provider/echo/{msg}")
     String echoMessage(@PathVariable("msg") String msg);

}
